#ifndef ZCONFIG_MANAGER_H_
#define ZCONFIG_MANAGER_H_

#include "../Common/GlobalDefines.h"
#include "../Common/ZSingleton.h"
#include "ZConfig.h"
#include <string>

GLOBAL_NAMESPACE_BEGIN

class ConfigManager : public Singleton<ConfigManager>
{
public:
    ConfigManager();
    ~ConfigManager();

    void init(const std::string& configFile);
    Config* getConfig();

    void destroy();

private:
    std::string filePath_;
    Config      config_;
};

GLOBAL_NAMESPACE_END

#endif//ZCONFIG_MANAGER_H_